package com.home.common.framework.config;

/**
 * Description:
 * Created by 王大宸 on 2020-12-28 10:13
 * Created with IntelliJ IDEA.
 */
public class TkMapperScannerConfigurer {

    // 精确到 master 目录，以便跟其他数据源隔离
    public static final String PACKAGE = "com.home.**.entity";
    public static final String MAPPER_LOCATION = "classpath:mapper/master/*.xml";
    public static final String SESSION_FACTORY_BEAN_NAME = "sqlsessionFactory";

//    @Bean
//    public MapperScannerConfigurer mapperScannerConfigurer(){
//        Properties properties=new Properties();
//        properties.put("mappers","tk.mybatis.mapper.common.Mapper,tk.mybatis.mapper.common.MySqlMapper");
//        MapperScannerConfigurer msc=new MapperScannerConfigurer();
//        msc.getMapperHelper().setProperties(properties);
//        msc.setBasePackage(PACKAGE);
//        msc.setSqlSessionFactoryBeanName(SESSION_FACTORY_BEAN_NAME);
//        return msc;
//    }

}
